
pkgname=expat
pkgver=2.2.5
pkgrel=1
pkgdesc="An XML Parser library written in C"
arch=('x86_64')
url="https://libexpat.github.io/"
license=('custom')
depends=('glibc')
options=('!libtool')
# moved to https://github.com/libexpat/libexpat
source=("https://downloads.sourceforge.net/sourceforge/expat/${pkgname}-${pkgver}.tar.bz2")
sha1sums=('490659abd7d6c6d4cb4e60c945a15fbf081564f6')

build() {
  cd ${pkgname}-${pkgver}

  ./configure --prefix=/usr --mandir=/usr/share/man 
  make 
}

package() {
  cd ${pkgname}-${pkgver}
  
  make DESTDIR=${pkgdir} install 
  install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING 
}
